home *** CD-ROM | disk | FTP | other *** search
Wrap
XXXXmmmmCCCCvvvvttttTTTTeeeexxxxttttPPPPrrrrooooppppeeeerrrrttttyyyyTTTTooooXXXXmmmmSSSSttttrrrriiiinnnnggggUUUUTTTTNNNNaaaaIIIIbbbbXXXXXXXXllllmmmmeeeeSSSSCCCC((((yyyyvvvv3333ssssttttXXXXttttTTTT))))eeeeeeeemmmmxxxxttttVVVVPPPPrrrrooooppppeeeerrrrttttyyyyTTTTooooXXXXmmmmSSSSttttrrrriiiinnnnggggTTTTaaaabbbblllleeee((((3333XXXX)))) NNNNAAAAMMMMEEEE XXXXmmmmCCCCvvvvttttTTTTeeeexxxxttttPPPPrrrrooooppppeeeerrrrttttyyyyTTTTooooXXXXmmmmSSSSttttrrrriiiinnnnggggTTTTaaaabbbblllleeee - A function that converts from a TextProperty Structure to a StringTable SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS #include <Xm/Xm.h> int XmCvtTextPropertyToXmStringTable (_d_i_s_p_l_a_y, _t_e_x_t__p_r_o_p, _s_t_r_i_n_g__t_a_b_l_e__r_e_t_u_r_n, _c_o_u_n_t__r_e_t_u_r_n) Display *_d_i_s_p_l_a_y; XTextProperty *_t_e_x_t__p_r_o_p; XmStringTable *_s_t_r_i_n_g__t_a_b_l_e__r_e_t_u_r_n; int *_c_o_u_n_t__r_e_t_u_r_n; (vvvvooooiiiidddd) VVVVEEEERRRRSSSSIIIIOOOONNNN This page documents Motif 2.1. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN XXXXmmmmCCCCvvvvttttTTTTeeeexxxxttttPPPPrrrrooooppppeeeerrrrttttyyyyTTTTooooXXXXmmmmSSSSttttrrrriiiinnnnggggTTTTaaaabbbblllleeee converts the specified _X_T_e_x_t_P_r_o_p_e_r_t_y structure into an XXXXmmmmSSSSttttrrrriiiinnnnggggTTTTaaaabbbblllleeee, as follows: +o If the encoding member of _t_e_x_t__p_r_o_p is the Atom _S_T_R_I_N_G, each returned XXXXmmmmSSSSttttrrrriiiinnnngggghas a tag of "ISO8859-1" and a text type of XXXXmmmmCCCCHHHHAAAARRRRSSSSEEEETTTT____TTTTEEEEXXXXTTTT. +o If the encoding member of _t_e_x_t__p_r_o_p is the encoding of the current locale, and if that encoding is not _S_T_R_I_N_G, each returned XXXXmmmmSSSSttttrrrriiiinnnngggg has a tag of ____MMMMOOOOTTTTIIIIFFFF____DDDDEEEEFFFFAAAAUUUULLLLTTTT____LLLLOOOOCCCCAAAALLLLEEEE and a text type of XXXXmmmmMMMMUUUULLLLTTTTIIIIBBBBYYYYTTTTEEEE____TTTTEEEEXXXXTTTT. +o If the encoding member of _t_e_x_t__p_r_o_p is other than _S_T_R_I_N_G or the encoding of the current locale, the contents of the returned compound strings are implementation dependent. If conversion depends on the locale and the current locale is not supported, the function returns XXXXLLLLooooccccaaaalllleeeeNNNNoooottttSSSSuuuuppppppppoooorrrrtttteeeedddd. If conversion to the encoding of the current locale is required and if the locale is supported but no converter is available for the encoding specified in _t_e_x_t__p_r_o_p, the function returns XXXXCCCCoooonnnnvvvveeeerrrrtttteeeerrrrNNNNoooottttFFFFoooouuuunnnndddd. For supported locales, existence of a converter from _C_O_M_P_O_U_N_D__T_E_X_T, _S_T_R_I_N_G, or the encoding of the current locale is guaranteed if XXXXSSSSuuuuppppppppoooorrrrttttssssLLLLooooccccaaaalllleeee returns True for the current locale (but the actual text may contain unconvertible characters). Conversion of other encodings to the encoding of the current locale is implementation dependent. In all of these error cases, the function does not set any return values. If an element of the value member of _t_e_x_t__p_r_o_p is not convertible to XXXXmmmmSSSSttttrrrriiiinnnngggg, the corresponding entry in the returned XXXXmmmmSSSSttttrrrriiiinnnnggggTTTTaaaabbbblllleeee will be NULL, and Page 1 (printed 4/6/01) XXXXmmmmCCCCvvvvttttTTTTeeeexxxxttttPPPPrrrrooooppppeeeerrrrttttyyyyTTTTooooXXXXmmmmSSSSttttrrrriiiinnnnggggUUUUTTTTNNNNaaaaIIIIbbbbXXXXXXXXllllmmmmeeeeSSSSCCCC((((yyyyvvvv3333ssssttttXXXXttttTTTT))))eeeeeeeemmmmxxxxttttVVVVPPPPrrrrooooppppeeeerrrrttttyyyyTTTTooooXXXXmmmmSSSSttttrrrriiiinnnnggggTTTTaaaabbbblllleeee((((3333XXXX)))) XXXXmmmmCCCCvvvvttttTTTTeeeexxxxttttPPPPrrrrooooppppeeeerrrrttttyyyyTTTTooooXXXXmmmmSSSSttttrrrriiiinnnnggggTTTTaaaabbbblllleeee returns Success. To free the storage for the XXXXmmmmSSSSttttrrrriiiinnnnggggTTTTaaaabbbblllleeee and its _c_o_u_n_t__r_e_t_u_r_n compound strings returned by this function, first free each XXXXmmmmSSSSttttrrrriiiinnnngggg in the table using XXXXmmmmSSSSttttrrrriiiinnnnggggFFFFrrrreeeeeeee, and then free the XXXXmmmmSSSSttttrrrriiiinnnnggggTTTTaaaabbbblllleeee itself using XXXXttttFFFFrrrreeeeeeee. _d_i_s_p_l_a_y Specifies the connection to the X server. _t_e_x_t__p_r_o_p Specifies a pointer to the _X_T_e_x_t_P_r_o_p_e_r_t_y. The format member of _t_e_x_t__p_r_o_p must be 8. _s_t_r_i_n_g__t_a_b_l_e__r_e_t_u_r_n Specifies the XXXXmmmmSSSSttttrrrriiiinnnnggggTTTTaaaabbbblllleeee array into which the converted compound strings are placed. _c_o_u_n_t__r_e_t_u_r_n Specifies the number of XXXXmmmmSSSSttttrrrriiiinnnnggggs returned by this function. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS Upon success, this function returns the set of XXXXmmmmSSSSttttrrrriiiinnnnggggs in _s_t_r_i_n_g__t_a_b_l_e__r_e_t_u_r_n, and it returns the number of XXXXmmmmSSSSttttrrrriiiinnnnggggs in _c_o_u_n_t__r_e_t_u_r_n, and returns Success. Otherwise, it returns the following: XXXXLLLLooooccccaaaalllleeeeNNNNoooottttSSSSuuuuppppppppoooorrrrtttteeeedddd Returned if conversion depends on the locale and the current locale is not supported. XXXXCCCCoooonnnnvvvveeeerrrrtttteeeerrrrNNNNoooottttFFFFoooouuuunnnndddd Returned if conversion to the encoding of the current locale is required and if the locale is supported but no converter is available for the encoding specified in _t_e_x_t__p_r_o_p. RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN XXXXmmmmCCCCvvvvttttXXXXmmmmSSSSttttrrrriiiinnnnggggTTTTaaaabbbblllleeeeTTTTooooTTTTeeeexxxxttttPPPPrrrrooooppppeeeerrrrttttyyyy(3), XXXXmmmmTTTTeeeexxxxtttt(3), and XXXXmmmmTTTTeeeexxxxttttGGGGeeeettttSSSSttttrrrriiiinnnngggg(3). Page 2 (printed 4/6/01)